<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue操作数据</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
</head>
<body>
  <div id="root">{{msg}}</div>
  <div id="root1">{{msg}}</div>
  <div id="root2">{{msg}}</div>
  <script>
    new Vue({
      //样式选择器  限制的是vue托管范围
      el:"#root",
      data: {
        msg:'atguigu',
      },
    });
  </script>
</body>
</html>